<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
  <form th:action="@{/oauth2/token}" method="post">
    code:<input name="code" th:value="${code}"> <br>
<!--      grant_type=authorization_code&redirect_uri=http://127.0.0.1:8080/token&scope=all-->
      <input name="grant_type" value="authorization_code">
      <input name="redirect_uri" value="http://127.0.0.1:8080/token">

      <input name="scope" value="all">
      <input type="submit">
  </form>

    <h1 th:text="${body}"></h1>
</body>
</html>